﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="randomhouseleft.ascx.cs" Inherits="WebHousingInfo.Controls.randomhouseleft" %>
<div id="news_nhadat_250">
    <div class="title">TIN TỨC NHÀ ĐẤT NGẪU NHIÊN</div>
    <div class="content">
    <%var objectNewsHouse = HousingInfo.Library.NewsHouseBOList.GetAllNewsHousesBOList();
      foreach (var obNewsHouse in objectNewsHouse)
      {
          if (obNewsHouse.IsActive == true)
          { %>
        <div class="data clearfix">
	        <a href="#"><img src="Images/40_1300414995.jpg" width="80" height="70" border="0" align="left" /></a>
	        <p><a href="#"><%=obNewsHouse.Title%></a></p>
	        <% if(obNewsHouse.NewsContent.Length > 85)
            {%>
                <%=obNewsHouse.NewsContent.Substring(0,75)%> ...
            <%}
            else
            {%>
             <%=obNewsHouse.NewsContent%>
            <%} %>
        </div>
        <div class="line"></div>
        <%}
      } %>
        
    </div>
    <div class="footer"><a href="#">xem thêm</a></div>		
</div>